package com.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bean.wd_role;
import com.dao.wd_roleMapper;
import com.service.RoleService;
@Service
public class RoleServiceImpl implements RoleService{
	@Autowired
	private wd_roleMapper roleDao;

	public int deleteByPrimaryKey(Integer roleId) {
		return roleDao.deleteByPrimaryKey(roleId);
	}

	public int insert(wd_role record) {
		return roleDao.insert(record);
	}

	public int insertSelective(wd_role record) {
		return roleDao.insertSelective(record);
	}

	public wd_role selectByPrimaryKey(Integer roleId) {
		return roleDao.selectByPrimaryKey(roleId);
	}

	public int updateByPrimaryKeySelective(wd_role record) {
		return roleDao.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(wd_role record) {
		return roleDao.updateByPrimaryKey(record);
	}

	public List<wd_role> selectList() {
		return roleDao.selectList();
	}

}
